﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class SoundManagerScript : MonoBehaviour {
	
	public List<AudioSource> audios;
	
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	public void setSFX(bool active)
	{
		for(int i = 0; i < audios.Count; i++)
		{
			float ivolume = 0.5f;
			if(!active)
				ivolume = 0.0f;
			
			audios[i].volume = ivolume;
		}
	}
}
